#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# @Time    : 2021/4/19 下午2:46
# @Author  : fugang_le
# @Software: PyCharm

### 编辑距离
import Levenshtein

a = 'nihao'
b = 'wohao'
Levenshtein_dis = Levenshtein.distance(a, b)
print(Levenshtein_dis)